package Cantella::DJabberd::Model::Admin::JabberGroup;

use Reaction::InterfaceModel::ObjectClass;

class JabberGroup, which {

  has user_jids =>
    (
     clearer        => '_clear_user_jids',
     domain_model   => '_jabber_group_store',
     is             => 'ro',
     isa            => 'Cantella::DJabberd::Model::Admin::UserJid::Collection',
     lazy           => 1,
     orig_attr_name => 'user_jids',
     required       => 1,
     default => sub {
       my $rs = shift->_jabber_group_store->user_jids;
       'Cantella::DJabberd::Model::Admin::UserJid::Collection'->new( _source_resultset => $rs);
     },
    );

};

1;
